Skip to content

feat(tsgen): migrate contentstack-cli-tsgen into cli-plugins monorepo#166

Merged
cs-raj merged 3 commits into
feat/migrate-external-cli-plugins-v2from
enhc/DX-7531-migrate-tsgen-v2
May 25, 2026
Merged

feat(tsgen): migrate contentstack-cli-tsgen into cli-plugins monorepo#166
cs-raj merged 3 commits into
feat/migrate-external-cli-plugins-v2from
enhc/DX-7531-migrate-tsgen-v2

Conversation

@cs-raj
Copy link
Copy Markdown
Contributor

@cs-raj cs-raj commented May 24, 2026

Summary

Migrates contentstack-cli-tsgen from the standalone repo into contentstack/cli-plugins at packages/contentstack-cli-tsgen, following the same pattern as query-export and apps-cli.

  • npm name unchanged: contentstack-cli-tsgen
  • Command unchanged: csdx tsgen
  • Version: 5.0.0-beta.0 (aligned with CLI 2.x beta; major bump from 4.x)
  • Scope: v2 beta line only (feat/migrate-external-cli-plugins-v2v2-beta); no v1-dev work

What changed

New package: packages/contentstack-cli-tsgen

  • OCLIF command, helpers, types, Jest integration tests, bin/ for local dev
  • Dependencies: @contentstack/cli-command / @contentstack/cli-utilities ~2.0.0-beta.*, @contentstack/types-generator ^3.10.0
  • Package skills (typescript-cli-tsgen, dev-workflow, testing, code-review) and AGENTS.md

CI / release

  • .github/workflows/tsgen-integration-test.yml — PR job: build plugin, install @contentstack/cli@beta, link plugin, run integration tests with delivery-token secrets
  • unit-test.yml — lint step for tsgen
  • release-v2-beta-plugins.yml — publish contentstack-cli-tsgen with beta tag on v2-beta merge
  • release.json — document tsgen plugin entry

Documentation

  • TSGEN-MIGRATION.md — consumer and contributor migration guide
  • Root README.md, AGENTS.md, monorepo skills/ updated with tsgen pointers
  • Package README.md / MIGRATION.md updated for monorepo and 5.0.0-beta.0

Workspace

  • pnpm-lock.yaml and .talismanrc checksum updated

Test plan

  • pnpm install at repo root
  • pnpm --filter contentstack-cli-tsgen run build
  • pnpm --filter contentstack-cli-tsgen run lint
  • Locally (optional): csdx plugins:link in package dir, csdx tsgen --help, pnpm run test:integration with TOKEN_ALIAS in .env
  • Confirm GitHub Actions secrets exist on contentstack/cli-plugins: REGION, TOKEN_ALIAS, APIKEY, DELIVERYKEY, ENVIRONMENT
  • Verify tsgen-integration-test workflow passes on this PR

Install (after release to npm beta)

csdx plugins:install contentstack-cli-tsgen@beta

@github-actions
Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 1 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 0
  • High without fixes: 0
  • Medium without fixes: 1
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

@github-actions
Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 1 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 0
  • High without fixes: 0
  • Medium without fixes: 1
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

@cs-raj cs-raj marked this pull request as ready for review May 25, 2026 09:38
@cs-raj cs-raj requested a review from a team as a code owner May 25, 2026 09:38
@github-actions
Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 1 25 ✅ Passed
🟡 Medium Severity 0 2 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

⚠️ Warning: The following vulnerabilities have exceeded their SLA thresholds (days since publication).

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 1 90 / 365 days ⚠️ Warning
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 0
  • High without fixes: 1
  • Medium without fixes: 2
  • Low without fixes: 0

⚠️ BUILD PASSED WITH WARNINGS - SLA breaches detected for issues without available fixes

Consider reviewing these vulnerabilities when fixes become available.

@cs-raj cs-raj merged commit 0f8befe into feat/migrate-external-cli-plugins-v2 May 25, 2026
6 of 8 checks passed
@cs-raj cs-raj deleted the enhc/DX-7531-migrate-tsgen-v2 branch May 25, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants